package com.qf.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.blog.dto.MyPage;
import com.qf.blog.dto.TokenDto;
import com.qf.blog.entity.User;
import com.qf.blog.vo.UserVo;

/**
 * User: key
 * ClassName:UserService
 * Date: 2023/6/2
 * Time: 20:08
 * description:
 */
public interface UserService extends IService<User> {

    void register(UserVo userVo);

    public User getUserByEmail(String email);

    Integer updateUserStatus(String code);

    User getUserByUsername(String username);

    Integer updateUserHeader(Integer id, String fileUrl);

    TokenDto login(String username, String password);

    void updateByEmail(String email, String body);
     boolean updeteUser(String email,String emailVerifyCode);
}
